-
Notifications
You must be signed in to change notification settings - Fork 722
Add trunc scalar prim_op #6580
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add trunc scalar prim_op #6580
Conversation
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/executorch/6580
Note: Links to docs will display an error until the docs builds have been completed. ✅ No FailuresAs of commit 0fe0696 with merge base 17ad8d3 ( This comment was automatically generated by Dr. CI and updates every 15 minutes. |
|
This pull request was exported from Phabricator. Differential Revision: D65057149 |
6fc4982 to
67776fa
Compare
|
@GregoryComer has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator. |
67776fa to
37df95c
Compare
Summary: Add a primitive op kernel for scalar trunc (double -> int). This corresponds to python math.trunc in the export graph and is used in some torchvision transforms for size calculations. Note that trunc is already supported in export. Test Plan: Added a test for trunc in prim ops tests. Also validated end to end with MSGR ODNC model. Differential Revision: D65057149 Pulled By: GregoryComer
|
This pull request was exported from Phabricator. Differential Revision: D65057149 |
Summary: Add a primitive op kernel for scalar trunc (double -> int). This corresponds to python math.trunc in the export graph and is used in some torchvision transforms for size calculations. Note that trunc is already supported in export. Test Plan: Added a test for trunc in prim ops tests. Also validated end to end with MSGR ODNC model. Differential Revision: D65057149 Pulled By: GregoryComer
37df95c to
3f9bd10
Compare
|
This pull request was exported from Phabricator. Differential Revision: D65057149 |
Summary: Add a primitive op kernel for scalar trunc (double -> int). This corresponds to python math.trunc in the export graph and is used in some torchvision transforms for size calculations. Note that trunc is already supported in export. Test Plan: Added a test for trunc in prim ops tests. Also validated end to end with MSGR ODNC model. Differential Revision: D65057149 Pulled By: GregoryComer
3f9bd10 to
a23997e
Compare
|
This pull request was exported from Phabricator. Differential Revision: D65057149 |
1 similar comment
|
This pull request was exported from Phabricator. Differential Revision: D65057149 |
Summary: Add a primitive op kernel for scalar trunc (double -> int). This corresponds to python math.trunc in the export graph and is used in some torchvision transforms for size calculations. Note that trunc is already supported in export. Test Plan: Added a test for trunc in prim ops tests. Also validated end to end with MSGR ODNC model. Differential Revision: D65057149 Pulled By: GregoryComer
a23997e to
f879ba1
Compare
|
This pull request was exported from Phabricator. Differential Revision: D65057149 |
Summary: Add a primitive op kernel for scalar trunc (double -> int). This corresponds to python math.trunc in the export graph and is used in some torchvision transforms for size calculations. Note that trunc is already supported in export. Test Plan: Added a test for trunc in prim ops tests. Also validated end to end with MSGR ODNC model. Differential Revision: D65057149 Pulled By: GregoryComer
f879ba1 to
859e530
Compare
|
This pull request was exported from Phabricator. Differential Revision: D65057149 |
Summary: Add a primitive op kernel for scalar trunc (double -> int). This corresponds to python math.trunc in the export graph and is used in some torchvision transforms for size calculations. Note that trunc is already supported in export. Test Plan: Added a test for trunc in prim ops tests. Also validated end to end with MSGR ODNC model. Differential Revision: D65057149 Pulled By: GregoryComer
859e530 to
c78d3c8
Compare
|
This pull request was exported from Phabricator. Differential Revision: D65057149 |
Summary: Add a primitive op kernel for scalar trunc (double -> int). This corresponds to python math.trunc in the export graph and is used in some torchvision transforms for size calculations. Note that trunc is already supported in export. Test Plan: Added a test for trunc in prim ops tests. Also validated end to end with MSGR ODNC model. Differential Revision: D65057149 Pulled By: GregoryComer
c78d3c8 to
71f5f4f
Compare
|
This pull request was exported from Phabricator. Differential Revision: D65057149 |
Summary: Add a primitive op kernel for scalar trunc (double -> int). This corresponds to python math.trunc in the export graph and is used in some torchvision transforms for size calculations. Note that trunc is already supported in export. Test Plan: Added a test for trunc in prim ops tests. Also validated end to end with MSGR ODNC model. Differential Revision: D65057149 Pulled By: GregoryComer
71f5f4f to
813da60
Compare
Summary: Add a primitive op kernel for scalar trunc (double -> int). This corresponds to python math.trunc in the export graph and is used in some torchvision transforms for size calculations. Note that trunc is already supported in export. Test Plan: Added a test for trunc in prim ops tests. Also validated end to end with MSGR ODNC model. Differential Revision: D65057149 Pulled By: GregoryComer
813da60 to
fab90d1
Compare
|
@GregoryComer has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator. |
Summary: Add a primitive op kernel for scalar trunc (double -> int). This corresponds to python math.trunc in the export graph and is used in some torchvision transforms for size calculations. Note that trunc is already supported in export. Test Plan: Added a test for trunc in prim ops tests. Also validated end to end with MSGR ODNC model. Differential Revision: D65057149 Pulled By: GregoryComer
fab90d1 to
8dd9281
Compare
|
This pull request was exported from Phabricator. Differential Revision: D65057149 |
8dd9281 to
5b592bc
Compare
|
This pull request was exported from Phabricator. Differential Revision: D65057149 |
Summary: Add a primitive op kernel for scalar trunc (double -> int). This corresponds to python math.trunc in the export graph and is used in some torchvision transforms for size calculations. Note that trunc is already supported in export. Reviewed By: mcr229 Differential Revision: D65057149
5b592bc to
0fe0696
Compare
|
This pull request was exported from Phabricator. Differential Revision: D65057149 |
Summary:
Add a primitive op kernel for scalar trunc (double -> int). This corresponds to python math.trunc in the export graph and is used in some torchvision transforms for size calculations.
Note that trunc is already supported in export.
Reviewed By: mcr229
Differential Revision: D65057149